CTab2Palette
void CTab2Palette( srcCTab, destPalette, srcUsage, srcTolerance ); CTabHandle srcCTab ; handle to color table you want to copy PaletteHandle destPalette; handle to the address of a destination color palette short srcUsage; the usage value you're switching in
short srcTolerance ; new tolerance level you're applying to the palette
CTab2Palette lets your application change a whole target color palette by copying all of the values from a color table.
srcCTab is the color table you're using for your model.
destPalette is the palette that's going to receive the color table's values.
srcUsage is pmCourteous, pmExplicit, pmTolerant or pmAnimated.
srcTolerance is the specification for tolerance level in the new palette.
Returns: none
Notes: CTab2Palette copies an entire color table into a color palette. If the palette is larger or smaller than the color table to begin with, it is re-sized to match
the color table. Any colors previously designated as animating on the palette
on the next call to ActivatePalette unless either of the handles are NIL, in which case no change at all takes place.